package com.neelsys.visualisation.domain;

import java.util.ArrayList;
import java.util.List;

public enum CourseStreamEnum {

	ENGINEERING, HUMANITIES, SCIENCES, COMMERECE, MANAGEMENT, MEDICAL, OTHER;

	public static List<CourseStreamEnum> nextValidStreams(
			CourseLevelEnum courseLevelEnum, CourseStreamEnum curCourseStream) {

		List<CourseStreamEnum> validCourseStreams = new ArrayList<CourseStreamEnum>();

		if (courseLevelEnum == CourseLevelEnum.INTERMEDIATE) {
			if (curCourseStream == ENGINEERING) {
				validCourseStreams.add(ENGINEERING);
				validCourseStreams.add(SCIENCES);
				validCourseStreams.add(MANAGEMENT);
			} else if (curCourseStream == MEDICAL) {
				validCourseStreams.add(MEDICAL);
				validCourseStreams.add(SCIENCES);
				// validCourseStreams.add(MANAGEMENT);
			} else if (curCourseStream == COMMERECE) {
				validCourseStreams.add(COMMERECE);
				validCourseStreams.add(MANAGEMENT);
			} else if (curCourseStream == HUMANITIES) {
				validCourseStreams.add(HUMANITIES);
				validCourseStreams.add(MANAGEMENT);
			}

		}else{
			validCourseStreams.add(curCourseStream);
			if(curCourseStream != MEDICAL){
				validCourseStreams.add(MANAGEMENT);
			}
			
		}

		return validCourseStreams;

	}
}
